{include file='public/header' /}

<div class="layuimini-container">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
        <legend>聊天详情</legend>
    </fieldset>

    <ul class="layui-timeline">
        {foreach $res as $com}
        <li class="layui-timeline-item">
            {if condition="$com['type'] eq 1 "}
            <i class="layui-icon layui-timeline-axis" style="color: red"></i>
            <div class="layui-timeline-content layui-text">
                {if condition="$com['msgtype'] neq 3"}

                <h3 class="layui-timeline-title">
                    {php}
                    echo base64_decode($com['content'])
                    {/php}
                </h3>
                {else/}
                <h3 class="layui-timeline-title">{$com['content']}</h3>
                {/if}
                <p>{$adminame}</p>
                <ul>
                    <li>{$com['create_time']}</li>
                    <!--  <li>《茅屋为秋风所破歌》</li> -->
                </ul>
            </div>

            {else/}
            <i class="layui-icon layui-timeline-axis" style="color: green"></i>
            <div class="layui-timeline-content layui-text">
                <h3 class="layui-timeline-title">{$com['content']}</h3>
                <p>{$username}</p>
                <ul>
                    <li>{$com['create_time']}</li>
                </ul>
            </div>
            {/if}
        </li>
       {/foreach}
    </ul>

</div>
{include file='public/footer' /}
